package com.xsedge.xsedge.dao;

import com.xsedge.xsedge.entity.NodeLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface NodeLogRepository extends JpaRepository<NodeLog,Integer > {
	//查count_pods
	@Query(value = "select * from nodelog where node_ip = ? order by record_time desc limit 0,1",nativeQuery = true)
	NodeLog findNodeLogByNodeIp(String node_ip);
}
